//
//  NSURL+WXMedia.m
//  WXMediaEngineDemo
//
//  Created by tianlong on 2018/6/22.
//  Copyright © 2018年 tianlong. All rights reserved.
//

#import "NSURL+WXMedia.h"

@implementation NSURL (WXMedia)
- (NSURL *)customSchemeURL {
    NSURLComponents * components = [[NSURLComponents alloc] initWithURL:self resolvingAgainstBaseURL:NO];
    components.scheme = @"WXMedia";
    return [components URL];
}

- (NSURL *)originalSchemeURL {
    NSURLComponents * components = [[NSURLComponents alloc] initWithURL:self resolvingAgainstBaseURL:NO];
    components.scheme = @"http";
    return [components URL];
}

@end
